import type { Plugin } from "#/global";

const pluginConfig: Plugin.PluginConfig = {
  install() {},
  config: {
    enable: import.meta.env.DEV,
    info: {
      name: "ai-warning/device",
      version: "1.0.0",
      author: "X.Mo",
      description: "提供设备管理功能",
    },
  },
  views: [
    {
      name: "DeviceRoute",
      path: "/device",
      meta: {
        title: "设备管理",
        i18n: "menu.device",
        icon: "ep:monitor",
        type: "M",
        hidden: false,
        subForceShow: true,
        breadcrumbEnable: true,
        copyright: false,
        cache: true,
      },
      children: [
        {
          name: "rd_device_rod:rdDeviceRod",
          path: "/device/rdDeviceRod",
          meta: {
            title: "装置管理",
            i18n: "rd_device_rod.menu.rdDeviceRod",
            icon: "ep:connection",
            type: "M",
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import("./views/rdDeviceRod/index.vue"),
        },
        {
          name: "rd_device_broadcast_server:rdDeviceBroadcastServer",
          path: "/device/rdDeviceBroadcastServer",
          meta: {
            title: "广播服务器",
            i18n: "rd_device_broadcast_server.menu.rdDeviceBroadcastServer",
            icon: "ep:cpu",
            type: "M",
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import("./views/rdDeviceBroadcastServer/index.vue"),
        },
        {
          name: "rd_device_broadcast:rdDeviceBroadcast",
          path: "/device/rdDeviceBroadcast",
          meta: {
            title: "广播设备",
            i18n: "rd_device_broadcast.menu.rdDeviceBroadcast",
            icon: "ep:microphone",
            type: "M",
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import("./views/rdDeviceBroadcast/index.vue"),
        },
        {
          name: "rd_device_hk_serial:rdDeviceSerial",
          path: "/device/rdDeviceSerial",
          meta: {
            title: "录像机设备",
            i18n: "rd_device_hk_serial.menu.rdDeviceSerial",
            icon: "ep:postcard",
            type: "M",
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import("./views/rdDeviceSerial/index.vue"),
        },
        
      ],
    },
  ],
};

export default pluginConfig;
